This page's update was
Tuesday, 2003-04-15
counts.
ネットワーク調査に必要なコマンド群
| command | 目的 | |||
| ifconfig | -a | interface | network interface情報の表示および設定 | |
| interface | aftype | parameters | ||
| ping | ||||
| arp | ||||
| netstat | ||||
| traceroute | ||||
| nslookup | ||||
| snoop | ||||
| route | ||||
ネットワークインターフェースの設定、および、設定内容の表示を行う。
ブート時、PCMCIAカードなどの抜き差しなどの後に実行され、各インターフェースのネットワークアドレスを設定するために使われることが多い。また、ダイアルアップ時の接続先アドレスの指定、各インターフェースのパラメーターを再設定する時も使われている。
ifconf -a interface すぺて表示する。 win98では、ipcfg /all と似ている。checjk
ifconf option interface aftype paramaters
aftype = inet inet6 ddp ax25 ipx netrom
parameters = address up down [-]broadcast[111.222.333.444] [-]ponttopoint[111.222.333.444]
ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index
1
inet 127.0.0.1 netmask ff000000
le0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
2
inet 192.168.10.55 netmask ffffff00 broadcast 192.168.10.255
ether 8:0:20:76:5d:12
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index
1
inet6 ::1/128
le0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
ether 8:0:20:76:5d:12
inet6 fe80::a00:20ff:fe76:5d12/10
#
アドレスの変更、設定については、下記のcommandを実行する。
# ifconfig le0 inet XXX.XXX.XXX.XXX
これで、アドレスが設定変更できる。
Last edit was Tuesday, 04/15/2003 <back> <up>